var WShell;

function Initialize() {
    WShell = new ActiveXObject("WScript.Shell");
}

function GetProductID(dummy) {
    var id = WShell.RegRead("HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ProductID");
    if(id == null)
        return dummy;
    return id;
}